package com.gc.server.service.impl;

import com.gc.server.enums.GoodsStatusEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.gc.server.dao.GoodsDao;
import com.gc.server.entity.GoodsEntity;
import com.gc.server.service.GoodsService;
import com.yf.service.impl.BaseServiceImpl;

/**
 * 物料Service实现类
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Mar 10 11:17:45 CST 2020
 */
@Service
public class GoodsServiceImpl extends BaseServiceImpl<GoodsEntity> implements GoodsService {

    private GoodsDao goodsDao;


    @Autowired
    public void setDao(GoodsDao goodsDao) {
        this.goodsDao = goodsDao;
        super.setBaseDao(goodsDao);
    }


    /**
     *
     *   @Override
     *     public List<UserVo> queryListVo(UserVo userVo) {
     *         return userDao.queryListVo(userVo);
     *     }
     *
     *     @Override
     *     public UserVo getVo(Long id) {
     *         return userDao.getVo(id);
     *     }

     @Override
     List<GoodsVo> queryListVo(GoodsVo goodsVo){
            return goodsDao.queryListVo(goodsVo);
     }

     @Override
     GoodsVo getVo(Long id){
                return goodsDao.getVo(id);
    }

     **/


    /**内部方法**/



    /**外部方法实现**/

    @Override
    public List<GoodsEntity> findByStatus(Integer status) {
        return goodsDao.findByStatus(status);
    }
}
